//@charset "utf-8";
// 新手引导
define(function (require, exports, module) {
	var ClientBaseModel = require('./clientbase');
	var NoPromptModel = ClientBaseModel.extend({
		file : 'noprompt.log',
		addPrompt : function (type) {
			var fileContent = this.getData();
			if(type == 1){//确定不再提示
				this.saveData({addPrompt : 1});
			}
			else if(type == 0){//取消不再提示
				this.saveData({addPrompt : 0});
			}
			else if(type == -1){//获取是否提示信息
				if (false === fileContent) {
					this.saveData({addPrompt : 0});
					return false;
				}
				else{
					if(fileContent['addPrompt'] == 1){
						return true;
					}
					return false;
				}
			}
		}
	});
  
	module.exports = new NoPromptModel();
});